//
//  GRGoodDetailAlbumView.m
//  YC_GRice
//
//  Created by luojinrong11 on 2018/7/13.
//  Copyright © 2018年 YeCai. All rights reserved.
//

#import "GRGoodDetailAlbumView.h"

@interface GRGoodDetailAlbumView()
@property(nonatomic,assign)NSInteger currentPage;
@end

@implementation GRGoodDetailAlbumView

-(void)awakeFromNib{
    [super  awakeFromNib];
    self.photoCycleView.delegate = self;
    self.photoCycleView.contentMode =   UIViewContentModeScaleAspectFill;

}
/** 点击图片回调 */
- (void)cycleScrollView:(SDCycleScrollView *)cycleScrollView didSelectItemAtIndex:(NSInteger)index{
    if (_delegate && [_delegate respondsToSelector:@selector(seleteImageIndex:imagArr:)]){
        [_delegate seleteImageIndex:index imagArr:self.imgeArr];
    }
}


- (void)reloadWithPhotoUrls:(NSArray *)photoUrls{
    if ([_imgeArr isEqualToArray:photoUrls]) {
        return;
    }
    self.imgeArr = photoUrls;
    _photoCycleView.imageURLStringsGroup = photoUrls;
   _photoCycleView.currentPageDotColor = HEXCOLOR(0xFFE44B);
    _photoCycleView.pageDotColor = HEXCOLOR(0x999999);
    
}




@end
